package controller;
import entity.Decreate;
import setvice.DecreateService;
import setvice.DecreateServiceimpl;
import java.util.List;
public class DecreateController {
    DecreateService decreateService=new DecreateServiceimpl();
    /*
    添加装扮
     */
    public boolean insertDecreateController(Decreate decreate) {
        return  decreateService.insertDecreateService(decreate);
    }
    /*
    删除装扮
     */
    public boolean deleteDecreateByDecreateThemeController(Integer id, String theme) {
        return decreateService.deleteDecreateByDecreateThemeController(id,theme);
    }

    public boolean changeDecreateByIdService(Integer id, String theme, Decreate decreate) {
        return decreateService.changeDecreateByIdService(id,theme,decreate);
    }

    public List<Decreate> seekAllDecreateService() {
        return decreateService.seekAllDecreateService();
    }

    public List<Decreate> seekDecreateByIdController(Integer id) {
        return decreateService.seekDecreateByIdService(id);
    }
}
